package com.example.drools_springboot_demo;

import com.example.drools_springboot_demo.Service.StrategyService;
import com.example.drools_springboot_demo.utils.MyApplicationContextAware;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DroolsSpringbootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DroolsSpringbootDemoApplication.class, args);
		StrategyService testService = (StrategyService)MyApplicationContextAware.getBean("testService");
		testService.execute();
	}
}
